package com.yuanhua.sim.client.socket.handler;

import com.yuanhua.core.base.entity.LoginResBean;
import com.yuanhua.core.base.entity.MsgResBean;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * * @description TODO
 * * @author songguoxiang@yunquna.com
 * * @date 2024/03/29 15:34
 */
public class MsgResHandler extends SimpleChannelInboundHandler<MsgResBean> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, MsgResBean msgResBean) throws Exception {
        if (msgResBean.getStatus() ==0) {
            System.out.println("消息发送成功");
        } else {
            System.out.println("消息发送失败,原因:" + msgResBean.getMsg());
        }
    }
}
